package com.czxy.admin.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 文章
 * @author xuhongzu
 * @version 1.0
 * @date 2019/4/24
 */
public class Article implements Serializable {
    /** 文章id */
    private Integer articleId;
    /** 文章所属用户id */
    private Integer articleUserId;
    /** 文章标题 */
    private String articleTitle;
    /** 文章被浏览次数 */
    private Integer articleViewCount;
    /** 文章被评论次数 */
    private Integer articleCommentCount;
    /** 文章被喜欢次数 */
    private Integer articleLikeCount;
    /** 文章被创建时间 */
    private Date articleCreateTime;
    /** 文章更新（修改）时间 */
    private Date articleUpdateTime;
    /**  文章是否有评论 0有，1没有*/
    private Integer articleIsComment;
    /** 文章状态 */
    private Integer articleStatus;
    /** 文章排序 */
    private Integer articleOrder;
    /** 文章内容 */
    private String articleContent;
    /** 文章属于的用户 */
    private User user;
    /** 一个文章内的标签 */
    private List<Tag> tagList;
    /** 一个文章的分类 */
    private List<Category> categoryList;

    @Override
    public String toString() {
        return "Article{" +
                "articleId=" + articleId +
                ", articleUserId=" + articleUserId +
                ", articleTitle='" + articleTitle + '\'' +
                ", articleViewCount=" + articleViewCount +
                ", articleCommentCount=" + articleCommentCount +
                ", articleLikeCount=" + articleLikeCount +
                ", articleCreateTime=" + articleCreateTime +
                ", articleUpdateTime=" + articleUpdateTime +
                ", articleIsComment=" + articleIsComment +
                ", articleStatus=" + articleStatus +
                ", articleOrder=" + articleOrder +
                ", articleContent='" + articleContent + '\'' +
                ", user=" + user +
                ", tagList=" + tagList +
                ", categoryList=" + categoryList +
                '}';
    }

    public Integer getArticleId() {
        return articleId;
    }

    public void setArticleId(Integer articleId) {
        this.articleId = articleId;
    }

    public Integer getArticleUserId() {
        return articleUserId;
    }

    public void setArticleUserId(Integer articleUserId) {
        this.articleUserId = articleUserId;
    }

    public String getArticleTitle() {
        return articleTitle;
    }

    public void setArticleTitle(String articleTitle) {
        this.articleTitle = articleTitle;
    }

    public Integer getArticleViewCount() {
        return articleViewCount;
    }

    public void setArticleViewCount(Integer articleViewCount) {
        this.articleViewCount = articleViewCount;
    }

    public Integer getArticleCommentCount() {
        return articleCommentCount;
    }

    public void setArticleCommentCount(Integer articleCommentCount) {
        this.articleCommentCount = articleCommentCount;
    }

    public Integer getArticleLikeCount() {
        return articleLikeCount;
    }

    public void setArticleLikeCount(Integer articleLikeCount) {
        this.articleLikeCount = articleLikeCount;
    }

    public Date getArticleCreateTime() {
        return articleCreateTime;
    }

    public void setArticleCreateTime(Date articleCreateTime) {
        this.articleCreateTime = articleCreateTime;
    }

    public Date getArticleUpdateTime() {
        return articleUpdateTime;
    }

    public void setArticleUpdateTime(Date articleUpdateTime) {
        this.articleUpdateTime = articleUpdateTime;
    }

    public Integer getArticleIsComment() {
        return articleIsComment;
    }

    public void setArticleIsComment(Integer articleIsComment) {
        this.articleIsComment = articleIsComment;
    }

    public Integer getArticleStatus() {
        return articleStatus;
    }

    public void setArticleStatus(Integer articleStatus) {
        this.articleStatus = articleStatus;
    }

    public Integer getArticleOrder() {
        return articleOrder;
    }

    public void setArticleOrder(Integer articleOrder) {
        this.articleOrder = articleOrder;
    }

    public String getArticleContent() {
        return articleContent;
    }

    public void setArticleContent(String articleContent) {
        this.articleContent = articleContent;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public List<Tag> getTagList() {
        return tagList;
    }

    public void setTagList(List<Tag> tagList) {
        this.tagList = tagList;
    }

    public List<Category> getCategoryList() {
        return categoryList;
    }

    public void setCategoryList(List<Category> categoryList) {
        this.categoryList = categoryList;
    }

    public Article(Integer articleId, Integer articleUserId, String articleTitle, Integer articleViewCount, Integer articleCommentCount, Integer articleLikeCount, Date articleCreateTime, Date articleUpdateTime, Integer articleIsComment, Integer articleStatus, Integer articleOrder, String articleContent) {
        this.articleId = articleId;
        this.articleUserId = articleUserId;
        this.articleTitle = articleTitle;
        this.articleViewCount = articleViewCount;
        this.articleCommentCount = articleCommentCount;
        this.articleLikeCount = articleLikeCount;
        this.articleCreateTime = articleCreateTime;
        this.articleUpdateTime = articleUpdateTime;
        this.articleIsComment = articleIsComment;
        this.articleStatus = articleStatus;
        this.articleOrder = articleOrder;
        this.articleContent = articleContent;
    }

    public Article() {
    }
}